import requests
import json


headers = {
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "content-type": "application/json",
    "device": "0",
    "device-id": "BbWAUQDREaTLrCfS/tVO49ROQhcwywjBBpQce9kBPl8M2WIIZgBkIfhCHpJMQNJHZWRNOWcAmPyca6djAE+HbOQ==",
    "eagleeye-pappname": "fyw9n1jhpf@e3fdbf165821069",
    "eagleeye-sessionid": "mqm7p0XOrk1hksu33eejvXjzC2mX",
    "eagleeye-traceid": "c40a63f81725674170626103221069",
    "h5version": "v1.0.0",
    "origin": "https://zhengce.qizhidao.com",
    "priority": "u=1, i",
    "referer": "https://zhengce.qizhidao.com/",
    "sec-ch-ua": "\"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "signature": "b7885a72d4af5c326a2d0453a5a4333f.kdQjld",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
    "user-agent-web": "X/437a7e241eca64bfd1ee2e06cd96fc9d"
}
cookies = {
    # "wz_uuid": "X%2F437a7e241eca64bfd1ee2e06cd96fc9d",
    # "sensorsdata2015jssdkchannel": "%7B%22prop%22%3A%7B%22_sa_channel_landing_url%22%3A%22%22%7D%7D",
    # "Hm_lvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1724379267",
    # "HMACCOUNT": "1AD8AE6F81C939B5",
    # "s_webp": "s",
    # "acw_tc": "784e2c9917256741196976792e6865b9819bfd2ef323f7baf26baef514423c",
    # "Hm_lpvt_9ea3e7293b7c088e0d2c88874b63e7dd": "1725674122",
    # "x-web-ip": "121.199.42.214, 121.199.80.151, 47.106.31.167, 100.121.108.21",
    # "sensorsdata2015jssdkcross": "%7B%22distinct_id%22%3A%221917d037db339a-0cb252742a6bbd-26001151-2073600-1917d037db4673%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22identities%22%3A%22eyIkaWRlbnRpdHlfY29va2llX2lkIjoiMTkxN2QwMzdkYjMzOWEtMGNiMjUyNzQyYTZiYmQtMjYwMDExNTEtMjA3MzYwMC0xOTE3ZDAzN2RiNDY3MyJ9%22%2C%22history_login_id%22%3A%7B%22name%22%3A%22%22%2C%22value%22%3A%22%22%7D%2C%22%24device_id%22%3A%221917d037db339a-0cb252742a6bbd-26001151-2073600-1917d037db4673%22%7D",
    # "accessToken": "",
    # "token": ""
}
url = "https://app.qizhidao.com/qzd-bff-marketing/library/search/searchNew"
data = {
    "current": 1,
    "pageSize": 10,
    "categorys": [],
    "projectGrade": [],
    "projectTypeEight": [],
    "moneySort": 0,
    "queryEnterprise": False,
    "stateList": [],
    "companyNames": [
        "中科蓝吧数字科技（苏州）有限公司"
    ],
    "creditCodes": [
        "91320506MA20H1KC16"
    ],
    "sortFlag": 1
}
data = json.dumps(data, separators=(',', ':'))
response = requests.post(url, headers=headers, cookies=cookies, data=data)

print(response.text)
print(response)